package com.huatai.datadevelop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huatai.datadevelop.vo.TableStructureModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author hecai
 * @description: TODO 表配置
 * @date 2022/12/14 15:28
 * @Version 1.0
 */
@ApiModel(value = "静态数据表管理实体类",description = "静态数据表管理实体类")
@TableName("table_config")
@Data
public class TableConfigEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty("静态数据表管理id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
	@ApiModelProperty("名称")
    private String name = "";

    /**
     * 表名  必须以stic_开头
     */
	@ApiModelProperty("表名")
    private String tableName = "";

    /**
     * 表字段
     */
	@ApiModelProperty("表字段")
    private String field = "";

    /**
     * 存放数据表结构model
     */
	@ApiModelProperty("存放数据表结构model")
    private String tableModel = "";

    /**
     * 库表模型
     */
	@ApiModelProperty("库表模型")
    @TableField(exist = false)
    public List<TableStructureModel> tableList;
}
